//
//  NSString+Hash.h
//  WSQOCTools
//
//  Created by 翁胜琼 on 2019/1/18.
//  Copyright © 2019 Dev John. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSString (Hash)

@property (readonly) NSString *md5String;
@property (readonly) NSString *md5StringX;
@property (readonly) NSString *sha1String;
@property (readonly) NSString *sha256String;
@property (readonly) NSString *sha512String;

- (NSString *)hmacMD5StringWithKey:(NSString *)key;
- (NSString *)hmacSHA1StringWithKey:(NSString *)key;
- (NSString *)hmacSHA256StringWithKey:(NSString *)key;
- (NSString *)hmacSHA512StringWithKey:(NSString *)key;
+ (NSString *)Base_HmacSha1:(NSString *)key data:(NSString *)data;

@end

NS_ASSUME_NONNULL_END
